package com.woniuxy.entity;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

//读取配置参数
@Data
@Component
@ConfigurationProperties(prefix = "minio")  //批量读取配置文件的属性值 自动映射
public class MinioProp {
    @Value("${minio.endpoint}")//原生的，读取minio.endpoint的属性值
    private String endpoint;
    private String accesskey;
    private String secretKey;
}